<template>
  <div class="menu">
    <el-aside>
      <div>
        <img src="../../assets/logo.jpg" alt="" class="logo" />
        <span class="title">海报设计系统</span>
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-location"></i>
              <span>导航一</span>
            </template>
            <el-submenu index="1-4">
              <template slot="title">选项4</template>
              <el-menu-item index="1-4-1">选项1</el-menu-item>
            </el-submenu>
          </el-submenu>
        </el-menu>
      </div>
    </el-aside>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
  },
};
</script>

<style scoped>
.menu {
  height: 100%;
}
.el-aside {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.logo {
  height: 50px;
  width: 50px;
  vertical-align: middle;
}
.title {
  font-size: 20px;
}
.el-menu {
  flex-grow: 1;
}
</style>